import parseUrl from 'spore-kit-location/parse'

function validUrl (domain, url) {
	let loc = parseUrl(url)
	return loc.host === domain
}

export default validUrl
